package com.finance.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.finance.dao.BalanceRecordMapper;
import com.finance.entity.BalanceRecord;

@Service("BalanceRecordService")
public class BalanceRecordService {

	@Resource(name = "BalanceRecordMapper")
	private BalanceRecordMapper balanceRecordMapper;

	public void insert(BalanceRecord record){
		balanceRecordMapper.insert(record);
	}
	
	public void updateByPrimaryKeySelective(BalanceRecord record){
		balanceRecordMapper.updateByPrimaryKeySelective(record);
	}
	
	public List<BalanceRecord> findByUserId(String userId){
		return balanceRecordMapper.findByUserId(userId);
	}
}
